//
//  ChatServer.h
//  Bees
//
//  Created by NowYouCanSee on 2019/3/4.
//  Copyright © 2019 xiaohan. All rights reserved.
//

#import "BaseServer.h"
#import "ChatroomModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface ChatServer : BaseServer
@property (nonatomic,strong) NSMutableArray <ChatroomModel*> *chatList;
@property (nonatomic,strong) NSArray <ChatroomModel*> *myChatList;

@property (nonatomic,strong) NSString *searchKey;

///全部群聊
- (void)getChatroomListIsMore:(BOOL)isMore completion:(void(^)(BOOL success, BOOL isHaveNextPage,NSString *msg))completion;
///我的群聊
- (void)getMyChatroomListCompletion:(void(^)(BOOL success,NSString *msg))completion;
///搜索群聊
- (void)getSearchChatroomListIsMore:(BOOL)isMore completion:(void(^)(BOOL success, BOOL isHaveNextPage,NSString *msg))completion;
///加入群聊
- (void)joinChatroom:(NSString*)roomId completion:(void(^)(BOOL success,NSString *msg))completion;
///退出群聊
- (void)deleteChatroom:(NSString*)roomId completion:(void(^)(BOOL success,NSString *msg))completion;
@end

NS_ASSUME_NONNULL_END
